using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using Eamon.MeituanDotnetSDK.api.common.request;
using Eamon.MeituanDotnetSDK.attribute;

namespace Eamon.MeituanDotnetSDK.model.ddzh.tuangou.tuangouReceiptGetconsumed
{
    /// <summary>
    /// 查询已验券信息
    /// </summary>
    [ApiMeta(
        Path = "/ddzh/tuangou/receipt/getconsumed",
        BusinessId = 58,
        ApiVersion = "10021",
        ApiName = "tuangou_receipt_getconsumed",
        NeedAuth = true
    )]
    public class TuangouReceiptGetconsumedRequest : MeituanRequest<TuangouReceiptGetconsumedResponse>
    {
        /// <summary>
        /// 团购券码
        /// </summary>
        [Required(ErrorMessage = "receiptCode不能为空")]
        [JsonPropertyName("receiptCode")]
        public string ReceiptCode { get; set; }

        public override string ToString()
        {
            return $"TuangouReceiptGetconsumedRequest{{ReceiptCode={ReceiptCode}}}";
        }
    }
}
